//// 检查是否为当前周的周二
// console.log("Is current week's Tuesday?", isTuesday(date));
//
// // 检查是否为下周的周二
// console.log("Is next week's Tuesday?", isTuesday(date, 1));
//
// // 检查是否为下下周的周二
// console.log("Is following week's Tuesday?", isTuesday(date, 2));
function isTuesday(date) {
    // 获取给定日期的周几，0代表周日，1代表周一，...，6代表周六
    var dayOfWeek = date.getDay();
    // 周二为2
    return dayOfWeek === 2;
}
